
book-01:     file format elf64-littleaarch64


Disassembly of section .init:

0000000000400830 <_init>:
  400830:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400834:	910003fd 	mov	x29, sp
  400838:	94000064 	bl	4009c8 <call_weak_fn>
  40083c:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400840:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400850 <.plt>:
  400850:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400854:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf2b8>
  400858:	f947fe11 	ldr	x17, [x16, #4088]
  40085c:	913fe210 	add	x16, x16, #0xff8
  400860:	d61f0220 	br	x17
  400864:	d503201f 	nop
  400868:	d503201f 	nop
  40086c:	d503201f 	nop

0000000000400870 <exit@plt>:
  400870:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400874:	f9400211 	ldr	x17, [x16]
  400878:	91000210 	add	x16, x16, #0x0
  40087c:	d61f0220 	br	x17

0000000000400880 <perror@plt>:
  400880:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400884:	f9400611 	ldr	x17, [x16, #8]
  400888:	91002210 	add	x16, x16, #0x8
  40088c:	d61f0220 	br	x17

0000000000400890 <kill@plt>:
  400890:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400894:	f9400a11 	ldr	x17, [x16, #16]
  400898:	91004210 	add	x16, x16, #0x10
  40089c:	d61f0220 	br	x17

00000000004008a0 <fork@plt>:
  4008a0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4008a4:	f9400e11 	ldr	x17, [x16, #24]
  4008a8:	91006210 	add	x16, x16, #0x18
  4008ac:	d61f0220 	br	x17

00000000004008b0 <signal@plt>:
  4008b0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4008b4:	f9401211 	ldr	x17, [x16, #32]
  4008b8:	91008210 	add	x16, x16, #0x20
  4008bc:	d61f0220 	br	x17

00000000004008c0 <getpid@plt>:
  4008c0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4008c4:	f9401611 	ldr	x17, [x16, #40]
  4008c8:	9100a210 	add	x16, x16, #0x28
  4008cc:	d61f0220 	br	x17

00000000004008d0 <getppid@plt>:
  4008d0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4008d4:	f9401a11 	ldr	x17, [x16, #48]
  4008d8:	9100c210 	add	x16, x16, #0x30
  4008dc:	d61f0220 	br	x17

00000000004008e0 <__libc_start_main@plt>:
  4008e0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4008e4:	f9401e11 	ldr	x17, [x16, #56]
  4008e8:	9100e210 	add	x16, x16, #0x38
  4008ec:	d61f0220 	br	x17

00000000004008f0 <sleep@plt>:
  4008f0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4008f4:	f9402211 	ldr	x17, [x16, #64]
  4008f8:	91010210 	add	x16, x16, #0x40
  4008fc:	d61f0220 	br	x17

0000000000400900 <tcgetpgrp@plt>:
  400900:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400904:	f9402611 	ldr	x17, [x16, #72]
  400908:	91012210 	add	x16, x16, #0x48
  40090c:	d61f0220 	br	x17

0000000000400910 <__gmon_start__@plt>:
  400910:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400914:	f9402a11 	ldr	x17, [x16, #80]
  400918:	91014210 	add	x16, x16, #0x50
  40091c:	d61f0220 	br	x17

0000000000400920 <abort@plt>:
  400920:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400924:	f9402e11 	ldr	x17, [x16, #88]
  400928:	91016210 	add	x16, x16, #0x58
  40092c:	d61f0220 	br	x17

0000000000400930 <getpgrp@plt>:
  400930:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400934:	f9403211 	ldr	x17, [x16, #96]
  400938:	91018210 	add	x16, x16, #0x60
  40093c:	d61f0220 	br	x17

0000000000400940 <fflush@plt>:
  400940:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400944:	f9403611 	ldr	x17, [x16, #104]
  400948:	9101a210 	add	x16, x16, #0x68
  40094c:	d61f0220 	br	x17

0000000000400950 <read@plt>:
  400950:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400954:	f9403a11 	ldr	x17, [x16, #112]
  400958:	9101c210 	add	x16, x16, #0x70
  40095c:	d61f0220 	br	x17

0000000000400960 <printf@plt>:
  400960:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400964:	f9403e11 	ldr	x17, [x16, #120]
  400968:	9101e210 	add	x16, x16, #0x78
  40096c:	d61f0220 	br	x17

0000000000400970 <__errno_location@plt>:
  400970:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400974:	f9404211 	ldr	x17, [x16, #128]
  400978:	91020210 	add	x16, x16, #0x80
  40097c:	d61f0220 	br	x17

Disassembly of section .text:

0000000000400980 <_start>:
  400980:	d280001d 	mov	x29, #0x0                   	// #0
  400984:	d280001e 	mov	x30, #0x0                   	// #0
  400988:	aa0003e5 	mov	x5, x0
  40098c:	f94003e1 	ldr	x1, [sp]
  400990:	910023e2 	add	x2, sp, #0x8
  400994:	910003e6 	mov	x6, sp
  400998:	580000c0 	ldr	x0, 4009b0 <_start+0x30>
  40099c:	580000e3 	ldr	x3, 4009b8 <_start+0x38>
  4009a0:	58000104 	ldr	x4, 4009c0 <_start+0x40>
  4009a4:	97ffffcf 	bl	4008e0 <__libc_start_main@plt>
  4009a8:	97ffffde 	bl	400920 <abort@plt>
  4009ac:	00000000 	.inst	0x00000000 ; undefined
  4009b0:	00400b24 	.word	0x00400b24
  4009b4:	00000000 	.word	0x00000000
  4009b8:	00400bf8 	.word	0x00400bf8
  4009bc:	00000000 	.word	0x00000000
  4009c0:	00400c78 	.word	0x00400c78
  4009c4:	00000000 	.word	0x00000000

00000000004009c8 <call_weak_fn>:
  4009c8:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf2b8>
  4009cc:	f947f000 	ldr	x0, [x0, #4064]
  4009d0:	b4000040 	cbz	x0, 4009d8 <call_weak_fn+0x10>
  4009d4:	17ffffcf 	b	400910 <__gmon_start__@plt>
  4009d8:	d65f03c0 	ret
  4009dc:	00000000 	.inst	0x00000000 ; undefined

00000000004009e0 <deregister_tm_clones>:
  4009e0:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  4009e4:	91026000 	add	x0, x0, #0x98
  4009e8:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  4009ec:	91026021 	add	x1, x1, #0x98
  4009f0:	eb00003f 	cmp	x1, x0
  4009f4:	540000a0 	b.eq	400a08 <deregister_tm_clones+0x28>  // b.none
  4009f8:	90000001 	adrp	x1, 400000 <_init-0x830>
  4009fc:	f9464c21 	ldr	x1, [x1, #3224]
  400a00:	b4000041 	cbz	x1, 400a08 <deregister_tm_clones+0x28>
  400a04:	d61f0020 	br	x1
  400a08:	d65f03c0 	ret
  400a0c:	d503201f 	nop

0000000000400a10 <register_tm_clones>:
  400a10:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400a14:	91026000 	add	x0, x0, #0x98
  400a18:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  400a1c:	91026021 	add	x1, x1, #0x98
  400a20:	cb000021 	sub	x1, x1, x0
  400a24:	9343fc21 	asr	x1, x1, #3
  400a28:	8b41fc21 	add	x1, x1, x1, lsr #63
  400a2c:	9341fc21 	asr	x1, x1, #1
  400a30:	b40000a1 	cbz	x1, 400a44 <register_tm_clones+0x34>
  400a34:	90000002 	adrp	x2, 400000 <_init-0x830>
  400a38:	f9465042 	ldr	x2, [x2, #3232]
  400a3c:	b4000042 	cbz	x2, 400a44 <register_tm_clones+0x34>
  400a40:	d61f0040 	br	x2
  400a44:	d65f03c0 	ret

0000000000400a48 <__do_global_dtors_aux>:
  400a48:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400a4c:	910003fd 	mov	x29, sp
  400a50:	f9000bf3 	str	x19, [sp, #16]
  400a54:	b0000093 	adrp	x19, 411000 <exit@GLIBC_2.17>
  400a58:	39428260 	ldrb	w0, [x19, #160]
  400a5c:	35000080 	cbnz	w0, 400a6c <__do_global_dtors_aux+0x24>
  400a60:	97ffffe0 	bl	4009e0 <deregister_tm_clones>
  400a64:	52800020 	mov	w0, #0x1                   	// #1
  400a68:	39028260 	strb	w0, [x19, #160]
  400a6c:	f9400bf3 	ldr	x19, [sp, #16]
  400a70:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400a74:	d65f03c0 	ret

0000000000400a78 <frame_dummy>:
  400a78:	17ffffe6 	b	400a10 <register_tm_clones>

0000000000400a7c <sig_hup>:
  400a7c:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400a80:	910003fd 	mov	x29, sp
  400a84:	b9001fa0 	str	w0, [x29, #28]
  400a88:	97ffff8e 	bl	4008c0 <getpid@plt>
  400a8c:	2a0003e1 	mov	w1, w0
  400a90:	90000000 	adrp	x0, 400000 <_init-0x830>
  400a94:	9132a000 	add	x0, x0, #0xca8
  400a98:	97ffffb2 	bl	400960 <printf@plt>
  400a9c:	d503201f 	nop
  400aa0:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400aa4:	d65f03c0 	ret

0000000000400aa8 <pr_ids>:
  400aa8:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400aac:	910003fd 	mov	x29, sp
  400ab0:	a90153f3 	stp	x19, x20, [sp, #16]
  400ab4:	f90013f5 	str	x21, [sp, #32]
  400ab8:	f9001fa0 	str	x0, [x29, #56]
  400abc:	97ffff81 	bl	4008c0 <getpid@plt>
  400ac0:	2a0003f3 	mov	w19, w0
  400ac4:	97ffff83 	bl	4008d0 <getppid@plt>
  400ac8:	2a0003f4 	mov	w20, w0
  400acc:	97ffff99 	bl	400930 <getpgrp@plt>
  400ad0:	2a0003f5 	mov	w21, w0
  400ad4:	52800000 	mov	w0, #0x0                   	// #0
  400ad8:	97ffff8a 	bl	400900 <tcgetpgrp@plt>
  400adc:	2a0003e1 	mov	w1, w0
  400ae0:	90000000 	adrp	x0, 400000 <_init-0x830>
  400ae4:	91332000 	add	x0, x0, #0xcc8
  400ae8:	2a0103e5 	mov	w5, w1
  400aec:	2a1503e4 	mov	w4, w21
  400af0:	2a1403e3 	mov	w3, w20
  400af4:	2a1303e2 	mov	w2, w19
  400af8:	f9401fa1 	ldr	x1, [x29, #56]
  400afc:	97ffff99 	bl	400960 <printf@plt>
  400b00:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400b04:	91026000 	add	x0, x0, #0x98
  400b08:	f9400000 	ldr	x0, [x0]
  400b0c:	97ffff8d 	bl	400940 <fflush@plt>
  400b10:	d503201f 	nop
  400b14:	a94153f3 	ldp	x19, x20, [sp, #16]
  400b18:	f94013f5 	ldr	x21, [sp, #32]
  400b1c:	a8c47bfd 	ldp	x29, x30, [sp], #64
  400b20:	d65f03c0 	ret

0000000000400b24 <main>:
  400b24:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400b28:	910003fd 	mov	x29, sp
  400b2c:	90000000 	adrp	x0, 400000 <_init-0x830>
  400b30:	9133e000 	add	x0, x0, #0xcf8
  400b34:	97ffffdd 	bl	400aa8 <pr_ids>
  400b38:	97ffff5a 	bl	4008a0 <fork@plt>
  400b3c:	b9001fa0 	str	w0, [x29, #28]
  400b40:	b9401fa0 	ldr	w0, [x29, #28]
  400b44:	7100001f 	cmp	w0, #0x0
  400b48:	540000ca 	b.ge	400b60 <main+0x3c>  // b.tcont
  400b4c:	90000000 	adrp	x0, 400000 <_init-0x830>
  400b50:	91340000 	add	x0, x0, #0xd00
  400b54:	97ffff4b 	bl	400880 <perror@plt>
  400b58:	52800000 	mov	w0, #0x0                   	// #0
  400b5c:	14000024 	b	400bec <main+0xc8>
  400b60:	b9401fa0 	ldr	w0, [x29, #28]
  400b64:	7100001f 	cmp	w0, #0x0
  400b68:	540000ad 	b.le	400b7c <main+0x58>
  400b6c:	528000a0 	mov	w0, #0x5                   	// #5
  400b70:	97ffff60 	bl	4008f0 <sleep@plt>
  400b74:	52800000 	mov	w0, #0x0                   	// #0
  400b78:	97ffff3e 	bl	400870 <exit@plt>
  400b7c:	90000000 	adrp	x0, 400000 <_init-0x830>
  400b80:	91344000 	add	x0, x0, #0xd10
  400b84:	97ffffc9 	bl	400aa8 <pr_ids>
  400b88:	90000000 	adrp	x0, 400000 <_init-0x830>
  400b8c:	9129f000 	add	x0, x0, #0xa7c
  400b90:	aa0003e1 	mov	x1, x0
  400b94:	52800020 	mov	w0, #0x1                   	// #1
  400b98:	97ffff46 	bl	4008b0 <signal@plt>
  400b9c:	97ffff49 	bl	4008c0 <getpid@plt>
  400ba0:	52800281 	mov	w1, #0x14                  	// #20
  400ba4:	97ffff3b 	bl	400890 <kill@plt>
  400ba8:	90000000 	adrp	x0, 400000 <_init-0x830>
  400bac:	91344000 	add	x0, x0, #0xd10
  400bb0:	97ffffbe 	bl	400aa8 <pr_ids>
  400bb4:	91006fa0 	add	x0, x29, #0x1b
  400bb8:	d2800022 	mov	x2, #0x1                   	// #1
  400bbc:	aa0003e1 	mov	x1, x0
  400bc0:	52800000 	mov	w0, #0x0                   	// #0
  400bc4:	97ffff63 	bl	400950 <read@plt>
  400bc8:	f100041f 	cmp	x0, #0x1
  400bcc:	540000c0 	b.eq	400be4 <main+0xc0>  // b.none
  400bd0:	97ffff68 	bl	400970 <__errno_location@plt>
  400bd4:	b9400001 	ldr	w1, [x0]
  400bd8:	90000000 	adrp	x0, 400000 <_init-0x830>
  400bdc:	91346000 	add	x0, x0, #0xd18
  400be0:	97ffff60 	bl	400960 <printf@plt>
  400be4:	52800000 	mov	w0, #0x0                   	// #0
  400be8:	97ffff22 	bl	400870 <exit@plt>
  400bec:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400bf0:	d65f03c0 	ret
  400bf4:	00000000 	.inst	0x00000000 ; undefined

0000000000400bf8 <__libc_csu_init>:
  400bf8:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400bfc:	910003fd 	mov	x29, sp
  400c00:	a901d7f4 	stp	x20, x21, [sp, #24]
  400c04:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf2b8>
  400c08:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf2b8>
  400c0c:	91374294 	add	x20, x20, #0xdd0
  400c10:	913722b5 	add	x21, x21, #0xdc8
  400c14:	a902dff6 	stp	x22, x23, [sp, #40]
  400c18:	cb150294 	sub	x20, x20, x21
  400c1c:	f9001ff8 	str	x24, [sp, #56]
  400c20:	2a0003f6 	mov	w22, w0
  400c24:	aa0103f7 	mov	x23, x1
  400c28:	9343fe94 	asr	x20, x20, #3
  400c2c:	aa0203f8 	mov	x24, x2
  400c30:	97ffff00 	bl	400830 <_init>
  400c34:	b4000194 	cbz	x20, 400c64 <__libc_csu_init+0x6c>
  400c38:	f9000bb3 	str	x19, [x29, #16]
  400c3c:	d2800013 	mov	x19, #0x0                   	// #0
  400c40:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  400c44:	aa1803e2 	mov	x2, x24
  400c48:	aa1703e1 	mov	x1, x23
  400c4c:	2a1603e0 	mov	w0, w22
  400c50:	91000673 	add	x19, x19, #0x1
  400c54:	d63f0060 	blr	x3
  400c58:	eb13029f 	cmp	x20, x19
  400c5c:	54ffff21 	b.ne	400c40 <__libc_csu_init+0x48>  // b.any
  400c60:	f9400bb3 	ldr	x19, [x29, #16]
  400c64:	a941d7f4 	ldp	x20, x21, [sp, #24]
  400c68:	a942dff6 	ldp	x22, x23, [sp, #40]
  400c6c:	f9401ff8 	ldr	x24, [sp, #56]
  400c70:	a8c47bfd 	ldp	x29, x30, [sp], #64
  400c74:	d65f03c0 	ret

0000000000400c78 <__libc_csu_fini>:
  400c78:	d65f03c0 	ret

Disassembly of section .fini:

0000000000400c7c <_fini>:
  400c7c:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400c80:	910003fd 	mov	x29, sp
  400c84:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400c88:	d65f03c0 	ret
